import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/layout/resume'
  },
  {
    path: '/layout',
    name: 'layout',
    redirect: '/layout/resume',
    component: () => import('../views/index.vue'),
    children: [
      {
        path: '/layout/resume',
        component: () => import('../views/resume/index.vue')
      },
      {
        path: '/layout/finance',
        component: () => import('../views/finance/index.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
